package com.lzh.lzhframework.domain.vo.feedback;

import com.lzh.lzhframework.domain.entity.FeedbackEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Author luzhiheng
 * @Date 2023/12/10 19:12
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class NoticeMsgVo {

    /**
     * 反馈消息id
     */
    private Long feedbackId;

    /**
     * 反馈用户名
     */
    private String userName;

    /**
     * 反馈内容
     */
    private String feedbackContent;

    /**
     * 反馈时间
     */
    private Date feedbackTime;

    /**
     * 反馈类型
     */
    private Integer feedbackType;

    public NoticeMsgVo(FeedbackEntity feedbackEntity) {
        this.feedbackId = feedbackEntity.getId();
        this.userName = feedbackEntity.getCreateName();
        this.feedbackContent = feedbackEntity.getFeedbackContent();
        this.feedbackTime = feedbackEntity.getCreateTime();
        this.feedbackType = feedbackEntity.getType();
    }
}
